package com.witherest.server.controller.web;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.witherest.server.vo.response.CommonResponse;

@Controller
@RequestMapping("/test")
public class WebControllerTest {
	private static final Logger logger = LoggerFactory.getLogger(WebControllerTest.class);
	
	@RequestMapping
	public String viewTest() throws Exception {
		logger.debug("Web Test In.....");		
		
		
		return "description";
	}
	
	@RequestMapping(value = "/json")
	public CommonResponse ajaxTest() throws Exception {
		logger.debug("Web Test JSON In.....");
		
		CommonResponse cr = new CommonResponse();
		cr.setResultCode("0");
		cr.setResultMsg("test");
		
		return cr;
	}
	
}
